# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import tinymce.models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='DishClassify',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
                ('is_delete', models.BooleanField(default=False)),
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('update_time', models.DateTimeField(auto_now=True)),
                ('classify', models.CharField(max_length=20)),
                ('en_classify', models.CharField(default='', max_length=40)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Dishes',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
                ('is_delete', models.BooleanField(default=False)),
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('update_time', models.DateTimeField(auto_now=True)),
                ('dish_name', models.CharField(max_length=30)),
                ('dish_price', models.DecimalField(max_digits=5, decimal_places=2)),
                ('dish_img', models.ImageField(upload_to='dishes')),
                ('dish_short', models.CharField(max_length=50)),
                ('dish_desc', tinymce.models.HTMLField()),
                ('dish_praise', models.IntegerField(default=0)),
                ('dish_response', models.IntegerField(default=0)),
                ('dish_type', models.ForeignKey(to='dishes.DishClassify')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='DishResponse',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
                ('is_delete', models.BooleanField(default=False)),
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('update_time', models.DateTimeField(auto_now=True)),
                ('user_name', models.CharField(max_length=20)),
                ('response', models.CharField(max_length=200)),
                ('response_dish', models.ForeignKey(to='dishes.Dishes')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
